package com.wei.miaosha.exception;

import com.wei.miaosha.result.CodeMsg;

/**
 * Created by Weizichen on 2018/8/11.
 * desc:全局异常处理实体类
 */
public class GlobalException extends RuntimeException {
    private static final long serialVersionUID = 1L;
    private CodeMsg cm;

    public GlobalException(CodeMsg cm) {
        // super(cm.toString());
        this.cm = cm;
    }

    public CodeMsg getCm() {
        return cm;
    }

    public void setCm(CodeMsg cm) {
        this.cm = cm;
    }
}

